package com.github.wxiaoqi.security.crm.core.client;

import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "flyray-admin")
public interface FeignAdminClient {
	@RequestMapping(value = "feign/role/add",method = RequestMethod.POST)
    public Map<String, Object> addRole(@RequestBody Map<String, Object> param);
	
	@RequestMapping(value = "feign/dept/add",method = RequestMethod.POST)
    public Map<String, Object> addDept(@RequestBody Map<String, Object> param);
	
	@RequestMapping(value = "feign/user/add",method = RequestMethod.POST)
    public Map<String, Object> addUser(@RequestBody Map<String, Object> param);
	
	@RequestMapping(value = "feign/userRole/add",method = RequestMethod.POST)
    public Map<String, Object> addUserRole(@RequestBody Map<String, Object> param);
	
	@RequestMapping(value = "feign/authority/platform",method = RequestMethod.POST)
    public Map<String, Object> platformAuthority(@RequestBody Map<String, Object> param);
	
	@RequestMapping(value = "feign/dept/selectByPlatformId",method = RequestMethod.POST)
    public Map<String, Object> selectByPlatformId(@RequestBody Map<String, Object> param);
}
